package com.qf.from;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 *
 * 用户注册时的必填的参数
 *
 */

@Data
public class RegisterDevUser implements Serializable {

    @NotBlank(message = "用户名为毕传项，岂能为空！")
    private String devUsername;

    @NotBlank(message = "密码为毕传项，岂能为空！")
    private String devPassword;

    @NotBlank(message = "邮箱为毕传项，岂能为空！")
    private String devEmail;

    @NotNull(message = "出生年月为毕传项，岂能为空！")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private java.util.Date devBirthday;


}
